<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'payment-processor-form',
        'enableAjaxValidation' => false,
    ));
    ?>
    <p class="note">Fields with <span class="required">*</span> are required.</p>
    <?php echo $form->errorSummary($model); ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'code'); ?>
        <?php echo $form->textField($model, 'code', array('size' => 60, 'maxlength' => 255)); ?>
        <?php echo $form->error($model, 'code'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'name'); ?>
        <?php echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 255)); ?>
        <?php echo $form->error($model, 'name'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'charge'); ?>
        <?php echo $form->textField($model, 'charge'); ?>
        <?php echo $form->error($model, 'charge'); ?>
    </div>
    <div class="row agree">
        <?php echo $form->labelEx($model, 'status'); ?>
        <?php echo $form->checkBox($model, 'status', array('size' => 1, 'maxlength' => 1)); ?>
        <?php echo $form->error($model, 'status'); ?>
    </div>
    <div class="row agree">
        <?php echo $form->labelEx($model, 'enable_for_withdraw'); ?>
        <?php echo $form->checkBox($model, 'enable_for_withdraw', array('size' => 1, 'maxlength' => 1)); ?>
        <?php echo $form->error($model, 'enable_for_withdraw'); ?>
    </div>
    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>
    <?php $this->endWidget(); ?>
</div>